package com.cropdoctor.service;

import com.cropdoctor.common.Result;
import com.cropdoctor.model.dto.NoteDto;
import com.cropdoctor.model.po.NotePo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface NoteService {

    Result<List<NotePo>> getNoteById(int idGarden);

    Result<String> updateNoteById(NotePo notePo);


    Result<String> insertOrUpdateNote(NotePo notePo, MultipartFile file);

    Result<String> deleteNote(int noteId);

    Result<String> insertImgById(int id, MultipartFile file);

    Result<String> insertOrUpdateNoteWithoutImg(NotePo notePo);
}
